#!/usr/bin/env python
# -*- coding: UTF-8 -*-


class ResultHandler(object):
    def __init__(self, target=None, q=None):
        self.callback = target
        self.q = q

    def handle(self, args):
        if self.callback is not None:
            self.callback(self.q, args)
